package com.hhs.storage.service;

import com.hhs.storage.bean.BaseDepartment;
import com.hhs.storage.bean.BaseDepartmentUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-01-12
 */
public interface BaseDepartmentUserService extends IService<BaseDepartmentUser> {
    /**
     * 判断用户是否部门负责人,有返回部门信息则是负责人
     * @param userId
     * @return
     */
    public String isDepartHead(String userId);
    /**
     * 根据用户id,获取用户部门信息
     * @param userId
     * @return
     */
    public BaseDepartmentUser getByUserId(String userId);
}
